<%-- 
    Document   : top
    Created on : Oct 6, 2011, 8:38:58 AM
    Author     : Rocker000
--%>

<%@page import="pojo.LoaiSanPham_pojo"%>
<%@page import="dao.LoaiSanPham_dao"%>
<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<table width="100%" background="Image/bg.jpg" height="100%" border="0">
    <tr align="center">
        <td width="25%" height="39"><a href="Home.jsp">Trang Chủ</a></td>
        <td width="25%"><a href="gioithieu.jsp">Giới Thiệu</a></td>
        <td width="25%"><a href="lienhe.jsp">Liên hệ</a></td>
        <td width="25%"><a href="baohanh.jsp">Bảo Hành</a></td>
    </tr>
<%ArrayList<LoaiSanPham_pojo> dsloaisanpham=LoaiSanPham_dao.LayToanBoDanhSach(); %>
    <tr  height="35" >
        <td boder="1">
            <div style="position: relative; width: 200px; height:250px; overflow:hidden; margin-left: 80px; margin-top: 50px">
                <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
                        codebase="http://download.macromedia.com/pub/shockwave/cabs
					/flash/swflash.cab#version=6,0,29,0"
                        width="100" height="150">
                    <param name="quality" value="high">
                    <embed src="Image/logo.swf" quality="high" pluginspage=
                           "http://www.macromedia.com/go/getflashplayer"
                           type="application/x-shockwave-flash" width="200"
                           height="150"">
                           </embed>
                </object>
            </div

        </td>
        <td  align="center">
            <table width="50%" border="0">
                <tr>
                <form id="form2" name="form2" method="get" action="sanpham_controller">
                    <tr>
                        <td width="14%">Tìm Kiếm:</td>
                        <td width="32%">                                          
                            <input type="text" name="txtkey" id="txttimkiem" />                    
                        </td>
                        <td width="36%">
                            <select name="cbloaisanpham" id="cbloaisanpham">
                                <option value ="none">--Tất cả--</option>>
            <%for(int i=0;i<dsloaisanpham.size();i++){ %>
            <option value="<%=dsloaisanpham.get(i).getMaLoaiSanPham() %>"><%=dsloaisanpham.get(i).getTenLoaiSanPham() %></option><%}%>
        
                            </select>
                        </td>
                        <td width="18%">
                            <input type ="hidden" name="action" value="timkiemsanpham">
                            <input type="submit" name="bttim" id="bttim" value="Tìm" />
                        </td>
                    </tr>
                </form>
    </tr>

    <tr>

    <div style="position:absolute; width: 600px; height:100px; overflow:hidden; margin-top: 65px; margin-left: 55px; ">
        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
                codebase="http://download.macromedia.com/pub/shockwave/cabs
					/flash/swflash.cab#version=6,0,29,0"
                width="600" height="100">
            <param name="quality" value="high">
            <embed src="Image/hinhchay.swf" quality="high" pluginspage=
                   "http://www.macromedia.com/go/getflashplayer"
                   type="application/x-shockwave-flash" width="600"
                   height="100">
                   </embed>
        </object>
    </div>
</tr>

</table>



</td>
</tr>
<tr align="center" valign="bottom">
    <td colspan="4" bgcolor="#CCFF00"><table width="100%" border="0">
            <tr align="center">
                <td><a href="loaisanphamtheodanhmuc.jsp?madanhmuc=DM001">Điện tử</a></td>
                <td><a href="loaisanphamtheodanhmuc.jsp?madanhmuc=DM002">Điện lạnh</a></td>
                <td><a href="loaisanphamtheodanhmuc.jsp?madanhmuc=DM003">Gia Dụng</a></td>
                <td><a href="loaisanphamtheodanhmuc.jsp?madanhmuc=DM004">Vi tính</a></td>
                <td><a href="loaisanphamtheodanhmuc.jsp?madanhmuc=DM005">Di Động</a></td>
                <td><a href="loaisanphamtheodanhmuc.jsp?madanhmuc=DM006">Viễn Thông</a></td>
                <td><a href="loaisanphamtheodanhmuc.jsp?madanhmuc=DM007">Nội Thất</a></td>
            </tr>
        </table>
    </td>
</tr>

</table>
